package com.yida.wy.vote.domain.request;


import com.yida.wy.vote.domain.vo.WyVoteItemVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author lqq
 * @date 2023-03-10
 */
@ApiModel("投票模板请求")
public class WyVoteTemplateRequest implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("投票项目ID")
	@NotNull(message = "请求参数有误[voteId]为空")
	private Long voteId;

	@Valid
	@ApiModelProperty("投票选项")
	@NotNull(message = "请编辑投票选项")
	private List<WyVoteItemVo> voteItems;

	public List<WyVoteItemVo> getVoteItems() {
		return voteItems;
	}

	public void setVoteItems(List<WyVoteItemVo> voteItems) {
		this.voteItems = voteItems;
	}

	public void setVoteId(Long voteId) {
		this.voteId = voteId;
	}

	public Long getVoteId() {
		return voteId;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("VoteTemplateRequest{");
		sb.append("voteId=").append(voteId);
		sb.append(", voteItems=").append(voteItems);
		sb.append('}');
		return sb.toString();
	}
}
